package lt.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import lt.web.pojo.AppInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AppInfoMapper extends BaseMapper<AppInfo> {
    List<AppInfo> selectAllByCondation(@Param("softwareName") String softwareName,
                                       @Param("status")Integer status, @Param("categoryLevel1")Integer categoryLevel1,
                                       @Param("categoryLevel2")Integer categoryLevel2, @Param("categoryLevel3")Integer categoryLevel3,
                                       @Param("devId")Integer devId, @Param("flatformId")Integer flatformId,
                                       @Param("from")Integer from, @Param("pageSize")Integer pageSize);

    AppInfo getAppInfoById(Integer id);

    int updateAppInfoStatus(@Param("status") Integer status,@Param("id") Integer id);
}
